<template>
  <div class="goodsDetail">
    <div>
      <div class="mt20">
        <span class="main_active">{{ translate('射频码个数') }}：</span>
        <el-input
          v-model="formInfo.eslCodeNum"
          class="w400"
          placeholder="100"
          type="number"
        />
      </div>
      <div class="mt20">
        <span class="main_active">{{ translate('射频码（旧）') }}：</span>
        <el-input
          v-model="formInfo.eslCodeOld"
          class="w400"
          placeholder="54 75 C5 2A"
        />
      </div>
      <div class="mt20">
        <span class="main_active">{{ translate('备注') }}：</span>
        <el-input
          v-model="formInfo.memo"
          class="w400"
          :placeholder="translate('备注')"
        />
      </div>
      <div class="mt20">
        <span class="main_active">{{ translate('版本号') }}：</span>
        <el-input
          v-model="formInfo.version"
          class="w400"
          :placeholder="translate('版本号')"
        />
      </div>
    </div>
  </div>
</template>
<script>
  import { translate } from '@/i18n'
  export default {
    name: 'Detail',
    components: {},
    props: {
      form: {
        type: Object,
        default: () => {
          return {}
        },
      },
    },
    emits: ['deletedchild'],
    data() {
      return {
        formInfo: this.form,
        translate: translate,
      }
    },
    watch: {
      form(val) {
        this.formInfo = val
      },
    },
    methods: {},
  }
</script>
<style lang="scss" scoped>
  .goodsDetail {
    height: 300px;
  }
  .flex_align {
    display: flex;
    align-items: center;
  }
  .tableDetail {
    padding: 10px;
    .button-add {
      text-align: end;
      padding: 10px;
    }
  }
  .main_active {
    display: inline-block;
    width: 124px;
    text-align: right;
  }
  .mr20 {
    margin-right: 20px;
  }

  .w400 {
    width: 400px !important;
  }
  .mt20 {
    margin-top: 10px;
  }
  .mr10 {
    margin-right: 10px;
  }
  .w320 {
    width: 320px;
  }
  ::v-deep .el-scrollbar__wrap {
    overflow-x: auto;
    height: calc(100% + 20px); //多出来的20px是横向滚动条默认的样式
  }
  ::v-deep .el-scrollbar .el-scrollbar__wrap .el-scrollbar__view {
    white-space: nowrap;
    display: inline-block;
  }
  ::v-deep .el-table--scrollable-x .el-table__body-wrapper {
    overflow-x: hidden;
  }
  ::v-deep input[type='number']::-webkit-inner-spin-button,
  ::v-deep input[type='number']::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
  }
</style>
